package base.day25.ticket;

public class DemoTicket {
    public static void main(String[] args) {
        Ticket tc1=new Ticket();
        Thread t1=new Thread(tc1);
        Thread t2=new Thread(tc1);
        Thread t3=new Thread(tc1);
        //设置线程名称
        t1.setName("一号窗口");
        t2.setName("二号窗口");
        t3.setName("三号窗口");
        //启动线程
        t1.start();
        t2.start();
        t3.start();


    }
}
